package edu.usx.server.mapper;

import edu.usx.server.pojo.Favorite;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.usx.server.pojo.Sites;
import edu.usx.server.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Usx
 * @since 2024-07-23
 */
@Mapper
public interface FavoriteMapper extends BaseMapper<Favorite> {

//    @Select("select * from favorite where user_id=#{id1} and site_id = #{id}")
    List<Favorite> getSitesByUser(Long id, Integer id1);
    List<Integer> getFavoriteSite(Integer id);
}
